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')
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')