Skip to content

Commit

Permalink
Address review comments: Move tests to appropriate class.
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarst committed Dec 9, 2014
1 parent e6ab461 commit 8f25cc1
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions eliot/tests/test_action.py
Expand Up @@ -683,28 +683,6 @@ def test_continue_task(self):
self.assertEqual(Action.continue_task, Action.continueTask)


def test_from_string(self):
"""
L{TaskLevel.from_string} is the same as as L{TaskLevel.fromString}.
"""
self.assertEqual(TaskLevel.from_string, TaskLevel.fromString)


def test_to_string(self):
"""
L{TaskLevel.to_string} is the same as as L{TaskLevel.toString}.
"""
self.assertEqual(TaskLevel.to_string, TaskLevel.toString)


def test_next_child(self):
"""
L{TaskLevel.next_child} is the same as as L{TaskLevel.nextChild}.
"""
self.assertEqual(TaskLevel.next_child, TaskLevel.nextChild)




class SerializationTests(TestCase):
"""
Expand Down Expand Up @@ -800,3 +778,23 @@ def test_fromString(self):
self.assertEqual([TaskLevel.fromString("/"), TaskLevel.fromString("/2/1")],
[TaskLevel(level=[]), TaskLevel(level=[2, 1])])


def test_from_string(self):
"""
L{TaskLevel.from_string} is the same as as L{TaskLevel.fromString}.
"""
self.assertEqual(TaskLevel.from_string, TaskLevel.fromString)


def test_to_string(self):
"""
L{TaskLevel.to_string} is the same as as L{TaskLevel.toString}.
"""
self.assertEqual(TaskLevel.to_string, TaskLevel.toString)


def test_next_child(self):
"""
L{TaskLevel.next_child} is the same as as L{TaskLevel.nextChild}.
"""
self.assertEqual(TaskLevel.next_child, TaskLevel.nextChild)

0 comments on commit 8f25cc1

Please sign in to comment.