'Test the detailed client view works.'

def testHuntOverviewShowsStats(self):

    with self.CreateSampleHunt() as hunt:
        hunt_stats = hunt.context.usage_stats
        hunt_stats.user_cpu_stats.sum = 5000
        hunt_stats.network_bytes_sent_stats.sum = 1000000
    self.Open('/')
    self.WaitUntil(self.IsElementPresent, 'client_query')
    self.Click('css=a[grrtarget=hunts]')
    self.WaitUntil(self.IsTextPresent, 'GenericHunt')
    self.Click("css=td:contains('GenericHunt')")
    self.Click('css=li[heading=Overview]')
    self.WaitUntil(self.IsTextPresent, '5,000.00s')
    self.WaitUntil(self.IsTextPresent, '1,000,000b')
