'Tests insert'

def test_insert(self):

    self.conn['test']['test'].insert_one({'name': 'paulie'})
    assert_soon((lambda : (sum((1 for _ in self._search())) == 1)))
    result_set_1 = self._search()
    self.assertEqual(sum((1 for _ in result_set_1)), 1)
    result_set_2 = self.conn['test']['test'].find_one()
    for item in result_set_1:
        self.assertEqual(item['_id'], result_set_2['_id'])
        self.assertEqual(item['name'], result_set_2['name'])
