Commits

Miguel Ángel García committed ad04ff8

added tests over ANY_ARG

  • Participants
  • Parent commits 9bcdace

Comments (0)

Files changed (1)

File pyDoublesTests/unit.py

             pass
 
 
+class AnyArgTest(unittest.TestCase):
+
+    def setUp(self):
+        self.sut = ANY_ARG
+
+    def test_is_not_none(self):
+        self.assertTrue(self.sut)
+
+    def test_is_equal_to_itself(self):
+        self.assertEquals(self.sut, ANY_ARG)
+
+    def test_is_itself(self):
+        self.assertTrue(self.sut is ANY_ARG)
+
+    def test_has_a_beautiful_representation(self):
+        self.assertEquals('ANY_ARG', str(self.sut))
+
 if __name__ == "__main__":
     print "Use nosetest to run this tests: nosetest unit.py"