Ejemplo n.º 1
0
 def test_numeric_hex_correctly_calculated(self):
     result = NumericValue("57005")
     self.assertEqual("DEAD", result.hex())
Ejemplo n.º 2
0
 def test_numeric_hex_correctly_handles_size_hint_on_constructor(self):
     result = NumericValue("$DEAD", size_hint=6)
     self.assertEqual("00DEAD", result.hex())
Ejemplo n.º 3
0
 def test_numeric_recognizes_valid_hex(self):
     result = NumericValue("$DEAD")
     self.assertEqual("DEAD", result.hex())