def test_convert_to_grid_dimension(self): self.assertEqual({'width': 123, 'height': 123}, _cloud_api_utils.convert_to_grid_dimensions(123)) self.assertEqual({'width': 123, 'height': 123}, _cloud_api_utils.convert_to_grid_dimensions((123))) self.assertEqual({'width': 123, 'height': 234}, _cloud_api_utils.convert_to_grid_dimensions((123, 234)))
def test_convert_to_grid_dimension(self): self.assertEqual({'width': 123, 'height': 123}, _cloud_api_utils.convert_to_grid_dimensions(123)) self.assertEqual({'width': 123, 'height': 123}, _cloud_api_utils.convert_to_grid_dimensions((123))) self.assertEqual({'width': 123, 'height': 234}, _cloud_api_utils.convert_to_grid_dimensions((123, 234)))