def METHOD_NAME(self):
    """Test an empty barcode scan.
    Ensure that all required data is in the respomse.
    """
    response = self.postBarcode(self.scan_url, '')
    self.assertEqual(response.status_code, 400)
    data = response.data
    self.assertIn('barcode', data)
    self.assertIn('Missing barcode data', str(response.data['barcode']))