Add more shopfloor flexibility.

BUG=None
TEST=Manual on device

Change-Id: Icef86f40a131dfe6b16cde03b3c631c70c6353bd
Reviewed-on: https://gerrit.chromium.org/gerrit/45067
Reviewed-by: Shuo-Peng Liao <deanliao@chromium.org>
Tested-by: Jon Salz <jsalz@chromium.org>
Commit-Queue: Jon Salz <jsalz@chromium.org>
diff --git a/py/privacy_unittest.py b/py/privacy_unittest.py
new file mode 100755
index 0000000..c5a848c
--- /dev/null
+++ b/py/privacy_unittest.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+# pylint: disable=W0212
+#
+# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import unittest2
+
+import factory_common  # pylint: disable=W0611
+from cros.factory import privacy
+
+class PrivacyTest(unittest2.TestCase):
+  def testFilterDict(self):
+    self.assertEquals(
+        dict(a='A', b='B',
+             ubind_attribute='<redacted 1 chars>',
+             gbind_attribute='<redacted 2 chars>'),
+        privacy.FilterDict(
+            dict(a='A', b='B', ubind_attribute='U', gbind_attribute='GG')))
+
+if __name__ == '__main__':
+  unittest2.main()