# Path: riak/util.py
# def unix_time_millis(dt):
# def datetime_from_unix_time_millis(ut):
# def is_timeseries_supported(v=None):
# def quacks_like_dict(object):
# def deep_merge(a, b):
# def deprecated(message, stacklevel=3):
#     def __init__(self, fget):
#     def __get__(self, obj, cls):
# def decode_index_value(index, value):
# def bytes_to_str(value, encoding='utf-8'):
# def str_to_bytes(value, encoding='utf-8'):
# def str_to_long(value, base=10):
# class lazy_property(object):


import datetime
import unittest
            import pytz
from riak.util import epoch, epoch_tz, \
        unix_time_millis
# Copyright 2010-present Basho Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -*- coding: utf-8 -*-


# NB: without tzinfo, this is UTC
ts0 = datetime.datetime(2015, 1, 1, 12, 1, 2, 987000)
ts0_ts = 1420113662987
ts0_ts_pst = 1420142462987


class DatetimeUnitTests(unittest.TestCase):
    def test_get_unix_time_without_tzinfo(self):

# Path: riak/util.py
# def unix_time_millis(dt):
# def datetime_from_unix_time_millis(ut):
# def is_timeseries_supported(v=None):
# def quacks_like_dict(object):
# def deep_merge(a, b):
# def deprecated(message, stacklevel=3):
#     def __init__(self, fget):
#     def __get__(self, obj, cls):
# def decode_index_value(index, value):
# def bytes_to_str(value, encoding='utf-8'):
# def str_to_bytes(value, encoding='utf-8'):
# def str_to_long(value, base=10):
# class lazy_property(object):


# Path: riak/tests/test_datetime.py
import datetime
import unittest
            import pytz
from riak.util import epoch, epoch_tz, \
        unix_time_millis

# Copyright 2010-present Basho Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -*- coding: utf-8 -*-


# NB: without tzinfo, this is UTC
ts0 = datetime.datetime(2015, 1, 1, 12, 1, 2, 987000)
ts0_ts = 1420113662987
ts0_ts_pst = 1420142462987


class DatetimeUnitTests(unittest.TestCase):
    def test_get_unix_time_without_tzinfo(self):

        self.assertIsNone(epoch.tzinfo)