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