Пример #1
0
 def test_many(self):
     t = (44.85555, 3.14, 10)
     s = '44.86, 3.14, 10.00'
     assert_equal(base.pretty_input(t), s)
Пример #2
0
 def test_one(self):
     assert_equal(base.pretty_input((-55.2,)), "-55.20")
Пример #3
0
 def test_empty(self):
     assert_equal(base.pretty_input(tuple()), "")
Пример #4
0
 def test_many(self):
     t = (44.85555, 3.14, 10)
     s = '44.86, 3.14, 10.00'
     assert_equal(base.pretty_input(t), s)
Пример #5
0
 def test_one(self):
     assert_equal(base.pretty_input((-55.2, )), "-55.20")
Пример #6
0
 def test_empty(self):
     assert_equal(base.pretty_input(tuple()), "")