'tests if we correctly put \'IF NOT EXISTS\' for insert statement'

def test_if_not_exists_included_on_save(self):

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