def test_basics(self):
    ' See if objects were added automatically (by the factory) to the current site. '
    self.assertEqual(list(self.gallery1.sites.all()), [self.site1])
    self.assertEqual(list(self.photo1.sites.all()), [self.site1])
See if objects were added automatically (by the factory) to the current site.
def test_basics(self):
    '  '
    self.assertEqual(list(self.gallery1.sites.all()), [self.site1])
    self.assertEqual(list(self.photo1.sites.all()), [self.site1])