pytest: test/165 (Familyname is unique according to...
... namecheck.fontdata.com)
(issue
@@ -2235,3 +2235,24 @@ def test_id_164():
ttFont['name'].names[i].string = bad_entry.encode(entry.getEncoding())
status, message = list(test(ttFont))[-1]
assert status == FAIL
+
+
+def test_id_165():
+ """ Familyname is unique according to namecheck.fontdata.com """
+ from fontbakery.specifications.googlefonts import com_google_fonts_test_165 as test
+
+ print('Test INFO with an already used name...')
+ # We dont FAIL because this is meant as a merely informative check
+ # There may be frequent cases when fonts are being updated and thus
+ # already have a public family name registered on the
+ # namecheck.fontdata.com database.
+ ttFont = TTFont("data/test/cabin/Cabin-Regular.ttf")
+ status, message = list(test(ttFont))[-1]
+ assert status == INFO
+
+ print('Test PASS with a unique family name...')
+ # Here we know that FamilySans has not been (and will not be)
+ # registered as a real family.
+ ttFont = TTFont("data/test/familysans/FamilySans-Regular.ttf")
+ status, message = list(test(ttFont))[-1]
+ assert status == PASS
