'Ensures that a query can take slave_okay syntax.
Useless with PyMongo 3+ as well as with MongoDB 3+.'

@skip_pymongo3
def test_slave_okay(self):

    person1 = self.Person(name='User    A', age=20)
    person1.save()
    person2 = self.Person(name='User    B', age=30)
    person2.save()
    person = self.Person.objects.slave_okay(True).first()
    self.assertTrue(isinstance(person, self.Person))
    self.assertEqual(person.name, 'User    A')
    self.assertEqual(person.age, 20)
