Commits

Gora Khargosh  committed c22f8ad

Test objects for hex/bin.

Signed-off-by: Gora Khargosh <gora.khargosh@gmail.com>

  • Participants
  • Parent commits f9ac863

Comments (0)

Files changed (2)

 right into it.
 
 Please visit: http://gorakhargosh.github.com/mom/ for more information.
-q
+

File tests/test_mom_builtins.py

         self.assertRaises(TypeError, bin, None, None)
         self.assertRaises(TypeError, bin, "error")
         self.assertRaises(TypeError, bin, 2.0)
+        self.assertRaises(TypeError, bin, object)
 
 class Test_hex(unittest2.TestCase):
     def test_hex_0_1_and_minus_1(self):
         self.assertRaises(TypeError, hex, None, None)
         self.assertRaises(TypeError, hex, "error")
         self.assertRaises(TypeError, hex, 2.0)
+        self.assertRaises(TypeError, hex, object)
 
 
 class Test_long_byte_count(unittest2.TestCase):