def test_find_by_region(self): self.dat.add_region("region 1") self.dat.save() assert Dataset.find_by_region("region 1").next() == self.dat