def test_open_milestones(self):
     p = ProjectFactory()
     MilestoneFactory(project=p, status='CLOSED')
     self.assertEqual(len(p.milestones()), 1)
     self.assertEqual(len(p.open_milestones()), 0)
 def test_milestones_empty(self):
     p = ProjectFactory()
     self.assertEqual(len(p.milestones()), 0)