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