def test_all_device_classes(): """There is a specific list of supported DeviceClasses, in order of device size.""" device_classes = [i.name for i in DeviceClass.all_classes()] assert device_classes == ['xs', 'sm', 'md', 'lg', 'xl']
def all_device_classes(fixture): """There is a specific list of supported DeviceClasses, in order of device size.""" device_classes = [ i.class_label for i in DeviceClass.all_classes()] vassert( device_classes == ['xs', 'sm', 'md', 'lg', 'xl'] )