예제 #1
0
 def test_positive_formatting(self):
     value = 12
     self.assertEqual(hoursdiff(value), '+12')
예제 #2
0
 def test_negative_formatting(self):
     value = -12
     self.assertEqual(hoursdiff(value), '-12')
예제 #3
0
 def test_wrong_type(self):
     value = 'some string, could be <script>dangerous</script>'
     self.assertEqual(hoursdiff(value), value)