def test_021(self): """ Page overridden len() : length non-zero """ page = Page() page.text = "hello world, goodbye" self.assertEqual(len(page), 3)
def test_013(self): """ Page text getter/setter """ page = Page() self.assertEqual(page.text, None) page.text = "hello world" self.assertEqual(page.text, 'hello world')
def test_014(self): """ Page text setter - not a string """ page = Page() with pytest.raises(TypeError): page.text = 12