Skip to content

Commit

Permalink
Add Filename system test.
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed Dec 2, 2016
1 parent 6801223 commit c6019d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions system_tests/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ def test_detect_logos_content(self):
logo = logos[0]
self._assert_logo(logo)

def test_detect_logos_filename(self):
client = Config.CLIENT
image = client.image(filename=LOGO_FILE)
logos = image.detect_logos()
self.assertEqual(len(logos), 1)
logo = logos[0]
self._assert_logo(logo)

def test_detect_logos_gcs(self):
bucket_name = Config.TEST_BUCKET.name
blob_name = 'logo.png'
Expand Down

0 comments on commit c6019d8

Please sign in to comment.