Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def test_bottom_border(self):
     testee = border("bottom", label=5, value=5, width=20)
     expect = "└─────┴─────┘"
     self.assertEqual(testee, expect)
Ejemplo n.º 4
0
 def test_top_border(self):
     testee = border("top", label=5, value=5, width=20)
     expect = "┌─────┬─────┐"
     self.assertEqual(testee, expect)
Ejemplo n.º 5
0
 def test_bottom_border(self):
     testee = border(Position.bottom, label=5, value=5, width=20)
     expect = '└─────┴─────┘'
     self.assertEqual(testee, expect)
Ejemplo n.º 6
0
 def test_top_border(self):
     testee = border(Position.top, label=5, value=5, width=20)
     expect = '┌─────┬─────┐'
     self.assertEqual(testee, expect)