'Tests insert'

def test_insert(self):

    self.conn['test']['test'].insert_one({'name': 'paulie'})
    while (len(self.synchronizer._search()) == 0):
        time.sleep(1)
    result_set_1 = self.synchronizer._search()
    self.assertEqual(len(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'])
