tools/media_engagement_preload/make_dafsa_unittest.py
def testExample2(self):
    """Tests Example 2 from make_dafsa.py."""
    infile = '["https://www.example.org", "http://www.google.com"]'
    outfile = b'\n\x1e\x81www\xae\x02\x8bgoogle.com\x81example.org\x80'
    self.assertEqual(make_dafsa.words_to_proto(make_dafsa.parse_json(infile)),
                      outfile)
Tests Example 2 from make_dafsa.py.
Tests Example 2 from make_dafsa.py.
Tests Example 2 from make_dafsa . py .
def testExample2(self):
    infile = '["https://www.example.org", "http://www.google.com"]'
    outfile = b'\n\x1e\x81www\xae\x02\x8bgoogle.com\x81example.org\x80'
    self.assertEqual(make_dafsa.words_to_proto(make_dafsa.parse_json(infile)),
                      outfile)
def testExample2 ( self ) : infile = '["https://www.example.org", "http://www.google.com"]' outfile = b'\n\x1e\x81www\xae\x02\x8bgoogle.com\x81example.org\x80' self . assertEqual ( make_dafsa . words_to_proto ( make_dafsa . parse_json ( infile ) ) , outfile )
Tests Example 2 from make_dafsa.py.
Tests Example 2 from make_dafsa . py .
"""Tests Example 2 from make_dafsa.py."""
self