Exemple #1
0
 def test_error_keyerror(self):
     self.assertEqual(get_boards(0), {})
Exemple #2
0
 def test_get_boards_just_code(self):
     self.assertEqual(get_boards(self.context.text, True)['Random'], 'b')
Exemple #3
0
 def test_get_boards_instance_len(self):
     self.assertGreaterEqual(len(get_boards(self.context.text)), 70)
Exemple #4
0
 def test_get_boards_none(self):
     self.assertIsInstance(get_boards(''), dict)
Exemple #5
0
def boards():
    boards = py4chan.get_boards(context_chan_text, just_code=True)
    return render_template('index.html', boards_list=boards)
Exemple #6
0
 def test_get_boards_instance(self):
     self.assertIsInstance(get_boards(self.context.text), dict)
Exemple #7
0
 def test_get_boards_just_code(self):
     self.assertEqual(get_boards(self.context.text, True)['Random'], 'b')
Exemple #8
0
 def test_error_keyerror(self):
     self.assertEqual(get_boards(0), {})
Exemple #9
0
 def test_get_boards_none(self):
     self.assertIsInstance(get_boards(''), dict)
Exemple #10
0
 def test_get_boards_instance_len(self):
     self.assertGreaterEqual(len(get_boards(self.context.text)), 70)
Exemple #11
0
 def test_get_boards_instance(self):
     self.assertIsInstance(get_boards(self.context.text), dict)