Exemple #1
0
 def test_021(self):
     """ Page overridden len() : length non-zero """
     page = Page()
     page.text = "hello world, goodbye"
     self.assertEqual(len(page), 3)
Exemple #2
0
 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')
Exemple #3
0
 def test_014(self):
     """ Page text setter - not a string """
     page = Page()
     with pytest.raises(TypeError):
         page.text = 12