'This test tests whether deleting using a single element as value works.'

@blocking_call_on_reactor_thread
def test_delete_single_element(self):

    self.test_insert()
    self.sqlite_test.insert('person', lastname='x', firstname='z')
    one = self.sqlite_test.fetchone(u'SELECT    *    FROM    person')
    self.assertEqual(one, ('a', 'b'))
    self.sqlite_test.delete('person', lastname='a')
    one = self.sqlite_test.fetchone(u'SELECT    *    FROM    person')
    self.assertEqual(one, ('x', 'z'))
