| Index: third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints_unittest.py
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints_unittest.py b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints_unittest.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce450152ad9719ead8b425fdb898414d1e1393da
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints_unittest.py
|
| @@ -0,0 +1,16 @@
|
| +# Copyright 2016 The Chromium 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 unittest
|
| +
|
| +import constraints
|
| +
|
| +
|
| +class WebBluetoothConstraintsTest(unittest.TestCase):
|
| +
|
| + def testGetRandomValidUUIDString(self):
|
| + # Regex from: https://webbluetoothcg.github.io/web-bluetooth/#uuids
|
| + self.assertRegexpMatches(
|
| + constraints.GetValidUUIDString(),
|
| + '^\'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\'$')
|
|
|