def test_num_pages_equal_to_size(self):
        self.assertEqual(self.pager(self.qs(20), 20, 1).num_pages, 1)
Update stats after an instance is changed.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_pagination.py/TestPager.test_num_pages_equal_to_size--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/compute/stats.py/Stats.update_stats_for_instance