blob: c5a848cd03d44f469beb41d255e9f3a9030f3b68 [file] [log] [blame]
Jon Salz8baad8b2013-03-11 20:01:45 +08001#!/usr/bin/python
2# pylint: disable=W0212
3#
4# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8import unittest2
9
10import factory_common # pylint: disable=W0611
11from cros.factory import privacy
12
13class PrivacyTest(unittest2.TestCase):
14 def testFilterDict(self):
15 self.assertEquals(
16 dict(a='A', b='B',
17 ubind_attribute='<redacted 1 chars>',
18 gbind_attribute='<redacted 2 chars>'),
19 privacy.FilterDict(
20 dict(a='A', b='B', ubind_attribute='U', gbind_attribute='GG')))
21
22if __name__ == '__main__':
23 unittest2.main()