def METHOD_NAME(self):
    system = data_setup.create_system()
    system.date_added = datetime.datetime(2009, 1, 1, 0, 0, 0)
    system.status_durations.append(SystemStatusDuration(
            status=SystemStatus.automated,
            start_time=datetime.datetime(2009, 1, 1, 0, 0, 0),
            finish_time=datetime.datetime(2010, 1, 3, 0, 0, 0)))
    system.status_durations.append(SystemStatusDuration(
            status=SystemStatus.removed,
            start_time=datetime.datetime(2010, 1, 3, 0, 0, 0)))
    session.flush()
    u = system_utilisation(system, datetime.datetime(2010, 1, 1, 0, 0, 0),
            datetime.datetime(2010, 1, 5, 0, 0, 0))
    self.assertEqual(u['idle_automated'], datetime.timedelta(days=2))
    self.assertEqual(u['idle_removed'], datetime.timedelta(days=2))
    self.assertEqual(sum((v for k, v in u.iteritems()), datetime.timedelta(0)),
            datetime.timedelta(days=4))