'Tests the Update Default Quotas functionality:
1) Login as Admin and go to Admin > System > Defaults
2) Updates default Quotas by adding a random number between 1 and 10
3) Verifies that the updated values are present in the
Quota Defaults table'

def test_update_defaults(self):

    default_quota_values = self.defaults_page.quota_values
    self.defaults_page.update_defaults(self.add_up)
    self.assertTrue(self.defaults_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(self.defaults_page.find_message_and_dismiss(messages.ERROR))
    self.assertGreater(len(default_quota_values), 0)
    for quota_name in default_quota_values:
        self.assertTrue(self.defaults_page.is_quota_a_match(quota_name, (default_quota_values[quota_name] + self.add_up)))
