def test_decode(self):
     self.assertEqual(Boolean.decode('true'), True)
     self.assertEqual(Boolean.decode('false'), False)
Beispiel #2
0
 def test_decode(self):
     self.assertEqual(Boolean.decode('true'), True)
     self.assertEqual(Boolean.decode('false'), False)
 def test_encode(self):
     self.assertEqual(Boolean.encode(True), 'true')
     self.assertEqual(Boolean.encode(False), 'false')
Beispiel #4
0
 def test_encode(self):
     self.assertEqual(Boolean.encode(True), 'true')
     self.assertEqual(Boolean.encode(False), 'false')
     self.assertEqual(Boolean.encode("true"), 'true')
     self.assertEqual(Boolean.encode("false"), 'false')