'Adding coverage to cqlengine for bool types.
@since 3.6
@jira_ticket PYTHON-596
@expected_result bool results should be filtered appropriately
@test_category object_mapper'

@execute_count(5)
def test_bool(self):

    class bool_model(Model, ):
        k = columns.Integer(primary_key=True)
        b = columns.Boolean(primary_key=True)
        v = columns.Integer(default=3)
    sync_table(bool_model)
    bool_model.create(k=0, b=True)
    bool_model.create(k=0, b=False)
    self.assertEqual(len(bool_model.objects.all()), 2)
    self.assertEqual(len(bool_model.objects.filter(k=0, b=True)), 1)
    self.assertEqual(len(bool_model.objects.filter(k=0, b=False)), 1)
