def test_number5_exception(self, mockconnection, mockinput): mocksql = mock.Mock() mocksql.cursor().execute.side_effect = sqlite3.Error g = Admin(mocksql, 1) m = g.number_5() assert m is False
def test_number5(self, mockconnection, mockinput): mocksql = mock.Mock() mocksql.cursor().commit.return_value = True g = Admin(mocksql, 1) m = g.number_5() assert m is True