Пример #1
0
 def test_4(self):
     """Predictable errors"""
     width = gmw(self.data, 4)
     assert width == len(fn('viking')), width
Пример #2
0
 def test_2(self):
     width = gmw(self.data, 2)
     assert width == len(fn("land speed")), width
Пример #3
0
 def test_3(self):
     width = gmw(self.data, 3)
     assert width == len(fn(1003)), width
Пример #4
0
 def test_1(self):
     width = gmw(self.data, 1)
     assert width == len(fn(300101)), width
Пример #5
0
 def test_0(self):
     width = gmw(self.data, 0)
     assert width == len(fn("lumberjacks")), width
Пример #6
0
 def test_spam(self):
     assert fn('spam') == 'spam', fn('spam')
Пример #7
0
 def test_1001(self):
     assert fn(1001) == '1,001', fn(1001)
Пример #8
0
 def test_0(self):
     assert fn(0) == '0', fn(0)