'tests that if_not_exists on models works as expected'

def test_if_not_exists_included_on_create(self):

    with mock.patch.object(self.session, 'execute') as m:
        TestIfNotExistsModel.if_not_exists().create(count=8)
    query = m.call_args[0][0].query_string
    self.assertIn('IF    NOT    EXISTS', query)
