Пример #1
0
 def test_exceed_border(self):
     testee1 = border("top", label=5, value=20, width=20)
     testee2 = len(testee1)
     expect1 = "┌─────┬────────────┐"
     expect2 = 20
     self.assertEqual(testee1, expect1)
     self.assertEqual(testee2, expect2)
Пример #2
0
 def test_exceed_border(self):
     testee1 = border(Position.top, label=5, value=20, width=20)
     testee2 = len(testee1)
     expect1 = '┌─────┬────────────┐'
     expect2 = 20
     self.assertEqual(testee1, expect1)
     self.assertEqual(testee2, expect2)
Пример #3
0
 def test_bottom_border(self):
     testee = border("bottom", label=5, value=5, width=20)
     expect = "└─────┴─────┘"
     self.assertEqual(testee, expect)
Пример #4
0
 def test_top_border(self):
     testee = border("top", label=5, value=5, width=20)
     expect = "┌─────┬─────┐"
     self.assertEqual(testee, expect)
Пример #5
0
 def test_bottom_border(self):
     testee = border(Position.bottom, label=5, value=5, width=20)
     expect = '└─────┴─────┘'
     self.assertEqual(testee, expect)
Пример #6
0
 def test_top_border(self):
     testee = border(Position.top, label=5, value=5, width=20)
     expect = '┌─────┬─────┐'
     self.assertEqual(testee, expect)