def test_error_keyerror(self): self.assertEqual(get_boards(0), {})
def test_get_boards_just_code(self): self.assertEqual(get_boards(self.context.text, True)['Random'], 'b')
def test_get_boards_instance_len(self): self.assertGreaterEqual(len(get_boards(self.context.text)), 70)
def test_get_boards_none(self): self.assertIsInstance(get_boards(''), dict)
def boards(): boards = py4chan.get_boards(context_chan_text, just_code=True) return render_template('index.html', boards_list=boards)
def test_get_boards_instance(self): self.assertIsInstance(get_boards(self.context.text), dict)