def _update_daily_usage(self, create_venture=False): if create_venture: Venture.objects.create(venture_id=1) network.update( {'10.10.10.10': 30}, {'10.10.10.10': 1}, network.get_usage_type(), date(year=2014, month=1, day=1), ) return DailyUsage.objects.all().count()
def test_get_usages_type(self): self.assertEqual(network.get_usage_type(), UsageType.objects.get())