Ejemplo n.º 1
0
 def test_list(self):
     rtn = loremipsum([2, 1])
     self.assertTrue(rtn.startswith('<p class="" style="">'))
     self.assertTrue(rtn.endswith('</p>'))
     self.assertEqual(rtn.count('<p class="" style="">'), 2)
     self.assertEqual(rtn.count('</p>'), 2)
     self.assertEqual(rtn.count('.'), 3)
Ejemplo n.º 2
0
 def test_classes_and_style(self):
     rtn = loremipsum(2, para=False, classes='class_1', style='style_1')
     self.assertTrue(rtn.startswith('<span class="class_1" style="style_1">'))
     self.assertTrue(rtn.endswith('</span>'))
     self.assertEqual(rtn.count('.'), 2)
Ejemplo n.º 3
0
 def test_para_with_classes_and_style(self):
     rtn = loremipsum(2, classes='class_1', style='style_1')
     self.assertTrue(rtn.startswith('<p class="class_1" style="style_1">'))
     self.assertTrue(rtn.endswith('</p>'))
     self.assertEqual(rtn.count('.'), 2)
Ejemplo n.º 4
0
 def test_para_false(self):
     rtn = loremipsum(2, para=False)
     self.assertFalse(rtn.startswith('<p class="" style="">'))
     self.assertFalse(rtn.endswith('</p>'))
     self.assertEqual(rtn.count('.'), 2)
Ejemplo n.º 5
0
 def test_simple_case(self):
     rtn = loremipsum(2)
     self.assertTrue(rtn.startswith('<p class="" style="">'))
     self.assertTrue(rtn.endswith('</p>'))
     self.assertEqual(rtn.count('.'), 2)