Exemple #1
0
 def setUp(self):
     self.default_dong = mkdong(1, False)
     self.maxlen = MAXLEN
     self.dong_too_long = MAXLEN + 1
Exemple #2
0
 def test_non_int_dong_length_raises_type_error(self):
     with self.assertRaises(TypeError):
         mkdong('penis', True)
Exemple #3
0
 def test_superfluous_str_argument_raises_type_error(self):
     with self.assertRaises(TypeError):
         mkdong(10, False, False, 'c**k')
Exemple #4
0
 def test_climaxing_dong_shows_load(self):
     self.assertEqual(mkdong(1, False, True), self.default_dong + ' ~~~~')
Exemple #5
0
 def test_wide_thin_microdongs_same(self):
     self.assertEqual(mkdong(0, False), mkdong(0, True))
Exemple #6
0
 def test_microdong_is_still_dong(self):
     micro = '( )/( )D'
     self.assertEqual(mkdong(0, False), micro)
Exemple #7
0
 def test_wide_dong_is_wide(self):
     dong = '( )/( )/D'
     self.assertEqual(mkdong(1, True), dong)
Exemple #8
0
 def test_dong_is_dong(self):
     dong = '( )/( )=D'
     self.assertEqual(mkdong(1, False), dong)