Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Implement test cases #44

Merged
merged 14 commits into from
Oct 11, 2016
Merged

Implement test cases #44

merged 14 commits into from
Oct 11, 2016

Conversation

killvung
Copy link
Contributor

@killvung killvung commented Oct 11, 2016

Sorry about the white spaces problem, I am using Sublime without any plugins, so I don't realized the existence of them.

Also I had fixed some of the problems @hugovk mentioned

Copy link
Contributor

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete pycache/vanity.cpython-35.pyc

@@ -7,48 +7,28 @@ class testNormalize(unittest.TestCase):
"""
A test class for the normalize method.
"""
def testFakePackage(self):

def test_FakePackage(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_fake_package


def testDjango(self):
def test_Django(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_django

normalized = vanity.normalize("dJaNgO")
self.assertEqual(normalized, "Django")

def testNone(self):
def test_None(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_none

normalized = vanity.normalize(None)
self.assertEqual(normalized, "none")

def testFlask(self):
def test_Flask(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_flask

normalized = vanity.normalize("fLaSk")
self.assertEqual(normalized, "Flask")

def testSpaceString(self):
def test_SpaceString(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_space_string

normalized = vanity.normalize(None)
self.assertEqual(normalized, "none")

def test_Flask(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_flask

normalized = vanity.normalize("fLaSk")
self.assertEqual(normalized, "Flask")

def test_SpaceString(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_space_string

def test_SpaceString(self):
normalized = vanity.normalize(" Flask ")
self.assertEqual(normalized, " Flask ")

def testEmpty(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_empty

normalized = vanity.normalize(" Flask ")
self.assertEqual(normalized, " Flask ")

def test_Empty(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_empty

normalized = vanity.normalize(None)
self.assertEqual(normalized, "none")

def testEmpty(self):
def test_Flask(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> test_flask

@killvung
Copy link
Contributor Author

killvung commented Oct 11, 2016

Should I also rename the class name to test_Normalize for consistency?
@hugovk Let me know

@killvung killvung closed this Oct 11, 2016
@hugovk
Copy link
Contributor

hugovk commented Oct 11, 2016

@killvung Yes please.

@killvung killvung reopened this Oct 11, 2016
@killvung
Copy link
Contributor Author

I actually changed it while asking for it
Have a look

@hugovk
Copy link
Contributor

hugovk commented Oct 11, 2016

And please lowercase it for consistency too. Thank you!

@killvung
Copy link
Contributor Author

Done

@killvung killvung changed the title Fixed errors based on the suggestion Implement test cases Oct 11, 2016
@hugovk hugovk merged commit 85ca2d1 into aclark4life:master Oct 11, 2016
@hugovk
Copy link
Contributor

hugovk commented Oct 11, 2016

I squashed this into a single commit and merged.

Thanks!

@killvung
Copy link
Contributor Author

Thank you so much
I appreciate it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants